package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CoffeeShopInfoMapper;
import com.ruoyi.system.domain.CoffeeShopInfo;
import com.ruoyi.system.service.ICoffeeShopInfoService;

/**
 * 地区店铺信息Service业务层处理
 * 
 * @author Lin
 * @date 2024-02-11
 */
@Service
public class CoffeeShopInfoServiceImpl implements ICoffeeShopInfoService 
{
    @Autowired
    private CoffeeShopInfoMapper coffeeShopInfoMapper;

    /**
     * 查询地区店铺信息
     * 
     * @param shopId 地区店铺信息主键
     * @return 地区店铺信息
     */
    @Override
    public CoffeeShopInfo selectCoffeeShopInfoByShopId(Long shopId)
    {
        return coffeeShopInfoMapper.selectCoffeeShopInfoByShopId(shopId);
    }

    /**
     * 查询地区店铺信息列表
     * 
     * @param coffeeShopInfo 地区店铺信息
     * @return 地区店铺信息
     */
    @Override
    public List<CoffeeShopInfo> selectCoffeeShopInfoList(CoffeeShopInfo coffeeShopInfo)
    {
        return coffeeShopInfoMapper.selectCoffeeShopInfoList(coffeeShopInfo);
    }

    /**
     * 新增地区店铺信息
     * 
     * @param coffeeShopInfo 地区店铺信息
     * @return 结果
     */
    @Override
    public int insertCoffeeShopInfo(CoffeeShopInfo coffeeShopInfo)
    {
        return coffeeShopInfoMapper.insertCoffeeShopInfo(coffeeShopInfo);
    }

    /**
     * 修改地区店铺信息
     * 
     * @param coffeeShopInfo 地区店铺信息
     * @return 结果
     */
    @Override
    public int updateCoffeeShopInfo(CoffeeShopInfo coffeeShopInfo)
    {
        return coffeeShopInfoMapper.updateCoffeeShopInfo(coffeeShopInfo);
    }

    /**
     * 批量删除地区店铺信息
     * 
     * @param shopIds 需要删除的地区店铺信息主键
     * @return 结果
     */
    @Override
    public int deleteCoffeeShopInfoByShopIds(Long[] shopIds)
    {
        return coffeeShopInfoMapper.deleteCoffeeShopInfoByShopIds(shopIds);
    }

    /**
     * 删除地区店铺信息信息
     * 
     * @param shopId 地区店铺信息主键
     * @return 结果
     */
    @Override
    public int deleteCoffeeShopInfoByShopId(Long shopId)
    {
        return coffeeShopInfoMapper.deleteCoffeeShopInfoByShopId(shopId);
    }
}
